package spring.cloud.tasks.common.nodepaths;

import spring.cloud.tasks.common.Symbols;

/**
 * 管理的任务实例信息
 */
public class ManagedTaskInstanceNodePaths {
    public static final String ROOT = Symbols.SLASH + "managed_task_instances ";

    public static String getTaskInstancesNodePath(String taskId) {
        return ROOT + Symbols.SLASH + taskId;
    }

    public static String getTaskInstanceNodePath(String taskId, String taskInstanceId) {
        return getTaskInstancesNodePath(taskId) + Symbols.SLASH + taskInstanceId;
    }

    public static String getTaskInstanceSubNodePath(String taskId, String taskInstanceId, String subNode) {
        return getTaskInstanceNodePath(taskId, taskInstanceId) + Symbols.SLASH + subNode;
    }

}
